<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="pos.presentation.*,java.util.*,pos.domain.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../style/style.css" />
</head>
<body>

	<jsp:include page="index.jsp"/>
		<div id=centro>
			<fieldset>
			<tr> 
					<td><p>Objetos con las características requeridas:</p></td>
			</tr>
<%
        List<Objeto> objetos = ObjetoStore.getInstance().getObjetos();
        
        for (Iterator<Objeto> iter = objetos.iterator(); iter.hasNext();) {
            Objeto o = (Objeto) iter.next();
            if(o.getTipo().equals(request.getParameter("pid"))){
%>
				
						--
						
						 <a href="descripcion.jsp?pid=<%=o.getOID()%>"><%=o.getNombre()%></a>
						
						--
						
						<br>
				
<%
		}}
       
%>
			</fieldset>
		</div>
</body>
</html>